package com.briup.ch03;
import java.util.Scanner;
public class Test07 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        //100-999,153=1*1*1+5*5*5+3*3*3
        System.out.println("请输入一个数字：");
        int num=sc.nextInt();
        for(int i=100;i<999;i++)
        {
            int g=0;
            int s=0;
            int b=0;
            b=i/100;
            s=(i%100)/10;
            g=i%10;
            if((b*b*b+s*s*s+g*g*g)==i)
            {
                System.out.println(i);
            }
        }

    }
}
